// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

/* eslint-disable no-new */

const cpn={
  template:'<div>{{message}}</div>',
  data(){
    return{
      message:'fuckin slave'
    }
  }
}



new Vue({
  el: '#app',
  // components: { App },
  // template: '<App/>'

  //直接使用createelement
  // render:function (createElement){
  //   return createElement('h2',
  //     {class:'mtf'},
  //     ["stupid mother fucker",createElement('button',['按钮'])])
  // },

  // //直接传入组件
  // render:function (creatElement){
  //   return creatElement(cpn)
  // }


  render:function (creatElement){
    return creatElement(App)
  }

})

